<?php
return [
    'traceLevel' => 0,
    'targets' => [
        [
            'class' => 'app\components\BaseFileTarget',
            'levels' => ['info'],
            'logPath' => 'access',
            'logVars' => ['_GET', '_POST'],
            'except' => [
                'yii\web\Session:*',
                'yii\web\User:*',
                'app\extensions\payment\weixin\WxPayApi:*',
            ],
        ],
        [
            'class' => 'app\components\BaseFileTarget',
            'levels' => ['info', 'error'],
            'logPath' => 'wx-pay',
            'logVars' => ['_GET', '_'],
            'categories' => [
                'app\extensions\payment\weixin\*',
            ],
        ],
        [
            'class' => 'app\components\BaseFileTarget',
            'levels' => ['error', 'warning'],
            'logPath' => 'error',
            'logVars' => ['_GET', '_POST'],
            'except' => [
                'app\extensions\payment\weixin\WxPayApi:*',
                'yii\web\HttpException:404',
            ],
        ]
    ],
];